﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Max.PH4_2102A.Shopping.Domain
{
    /// <summary>
    /// 退货退款主表
    /// </summary>
    [Table("tb_order_back_master")]
    public class OrderBackMasterProduct : AuditField
    {
        public Guid Id { get; set; }
        public string BackNo { get; set; } //退款单号
        public string OrderNo { get; set; }
        public string BackReason { get; set; } //退款原因
        public string BackType { get; set; } = "仅退款";
        public decimal BackAmount { get; set; }  //返还的金额

        public Guid SKUId { get; set; }
        public decimal Price { get; set; }
        public int Number { get; set; }

    }

    /// <summary>
    /// 退款退货明细(暂时不用)
    /// </summary>
    [Table("tb_order_back_detail")]
    public class OrderBackDetailProduct
    {
        public Guid Id { get; set; }
        public string BackNo { get; set; } //退款单号
        public Guid SKUId { get; set; }
        public decimal Price { get; set; }
        public int Number { get; set; }
    }
}
